package com.sunshine.common.pojo;

/**
 * 封装查询条件的实体类
 * @author NGU-sunshine
 *
 */
public class SearchLog {
	
	private int currentPage;//当前页码
	private int pageSize;//每页显示的记录数
	private String logInfo;
	private String startLogTime;
	private String endLogTime;
	private String className;
	private String logLeval;//DEBUG 0;ERROR 1;INFO2
	public int getCurrentPage() {
		if(currentPage <= 0) {
			currentPage = 1;
		}
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getPageSize() {
		if(pageSize == 0) {
			pageSize = 5;
		}
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public String getLogInfo() {
		return logInfo;
	}
	public void setLogInfo(String logInfo) {
		this.logInfo = logInfo;
	}
	public String getStartLogTime() {
		return startLogTime;
	}
	public void setStartLogTime(String startLogTime) {
		this.startLogTime = startLogTime;
	}
	public String getEndLogTime() {
		return endLogTime;
	}
	public void setEndLogTime(String endLogTime) {
		this.endLogTime = endLogTime;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getLogLeval() {
		return logLeval;
	}
	public void setLogLeval(String logLeval) {
		this.logLeval = logLeval;
	}
	
}
